autoenable security for compute special remote
authorJoey Hess <joeyh@joeyh.name>
Mon, 3 Mar 2025 19:47:09 +0000 (15:47 -0400)
committerJoey Hess <joeyh@joeyh.name>
Mon, 3 Mar 2025 19:52:56 +0000 (15:52 -0400)
commitf32d2aecceafe1730cc5d6ad684e0d4230e690ff
tree8e3fecb4792f4a105e69037ba468262441cee89f
parent89bfeada8785c68491e015c7d7bc16876b16dacc
autoenable security for compute special remote

Added annex.security.autoenable-compute-programs and only allow
autoenabling special remotes that use compute programs on that list.

The reason this is needed is a user might have some compute programs
that are less safe to use than others. They might want to use an unsafe
one only with one repository, where they are the only committer or other
committers are trusted. They might be ok with others being used by any
repository, and if so they can add them to the list.

Another reason would be a user who has installed a compute program by
accident. Eg, it might be included with git-annex at some point, or
pulled in by some dependency. That user doesn't necessarily want that
compute program to be used in an autoenabled special remote.
Remote/Compute.hs
TODO-compute
Types/GitConfig.hs
doc/design/compute_special_remote_interface.mdwn
doc/git-annex.mdwn
doc/special_remotes/compute.mdwn